﻿using Microsoft.EntityFrameworkCore;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// ef上下文
        /// </summary>
        /// <param name="options">类名</param>
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }
        /// <summary>
        /// 居民实体类
        /// </summary>
        public DbSet<Room> rooms { get; set; }
        /// <summary>
        /// 职员实体类
        /// </summary>
        public DbSet<Work> works { get; set; }
    }
}
